package com.igeek.mygh.model.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.igeek.mygh.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author xlz;
 * @data 2022-08-01 20:18
 */
@Data
@ApiModel(description = "用户")
@TableName("user")
public class User extends BaseEntity {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "用户名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "性别")
    @TableField("sex")
    private String sex;

    @ApiModelProperty(value = "电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "身份证号")
    @TableField("person_id")
    private String personId;

    @ApiModelProperty(value = "密码")
    @TableField("password")
    private String password;

    @ApiModelProperty(value = "是否为管理员？ 0：不是；1：是")
    @TableField("is_admin")
    private String isAdmin;
}
